import request from '@/utils/request'

// 查询列表
export function listManagement(query) {
    return request({
        url: '/business/phone/list',
        method: 'get',
        params: query
    })
}

// 查询详细
export function getManagement(phoneId) {
    return request({
        url: '/business/phone/' + phoneId,
        method: 'get'
    })
}

// 新增
export function addManagement(data) {
    return request({
        url: '/business/phone',
        method: 'post',
        data: data
    })
}

// 修改
export function updateManagement(data) {
    return request({
        url: '/business/phone',
        method: 'put',
        data: data
    })
}

// 删除
export function delManagement(phoneId) {
    return request({
        url: '/business/phone/' + phoneId,
        method: 'delete'
    })
}
